<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>登陆</title>
    <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="css/bootstrap-theme.min.css" rel="stylesheet"
          type="text/css">
    <link href="css/templatemo_style.css" rel="stylesheet" type="text/css">
</head>
<body class="templatemo-bg-gray">
<s:action name="User_Index_Action"/>

<div class="container">
    <div class="col-md-12">
        <h1 class="margin-bottom-15">欢迎光临DeepBook</h1>
        <s:form action="User_login_Action"/>
        <form
                class="form-horizontal templatemo-container templatemo-login-form-1 margin-bottom-30"
                action="User_login_Action.action" method="post">
            <div class="form-group">
                <div class="col-xs-12">
                    <div class="control-wrapper">
                        <label for="username" class="control-label fa-label"><i
                                class="fa fa-user fa-medium"></i></label> <input type="text"
                                                                                 class="form-control" id="username"
                                                                                 name="username"
                                                                                 value="<s:property value="#user.username"/>"
                    >
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-12">
                    <div class="control-wrapper">
                        <label for="password" class="control-label fa-label"><i
                                class="fa fa-lock fa-medium"></i></label> <input type="password"
                                                                                 class="form-control" id="password"
                                                                                 name="password"
                                                                                 value="<s:property value="#user.password"/>"
                    >
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-12">
                    <div class="control-wrapper">
                        <label for="rember" class="control-label fa-label"><i
                                class="fa fa-lock fa-medium"></i></label> 记住密码？<select id="rember"
                                                                                       name="rember" class="select">
                        <option value="0">不保存</option>
                        <option value="1">一天</option>
                        <option value="2">一周</option>
                        <option value="3">一个月</option>
                    </select>
                    </div>
                </div>
            </div>

            <s:if test="#request.tip=='error'">
                <div class="form-group">
                    <div class="col-md-12">
                        <div class="control-wrapper">
                            <font color='red'>错误的用户名或密码！</font>
                        </div>
                    </div>
                </div>
            </s:if>
            <div class="form-group">
                <div class="col-md-12">
                    <div class="control-wrapper">
                        <input type="submit" value="Log in" class="btn btn-info">
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>